﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp2
{
    class progam
    {
        static void Main(string[] args)
        {

            //cat a = new cat();
            //a.Leg = 4;
            //a.say();
            //a.sleep();
            //a.walk();
            //a.eat();
            //a.cry();
            Console.WriteLine("请选择要寄存的宠物 ： 1.猫  2.老虎 3.老鹰 4.燕子 ");
            int arr = int.Parse(Console.ReadLine());
            Animal v=new cat(); ;
            switch (arr)
            {
                case 1:
                    v = new cat();
                    break;
                case 2:
                    v = new tiger();
                    break;
                case 3:
                    v = new Eagle();
                    break;
                case 4:
                    v = new swallow();
                    break;

                default:
                    Console.WriteLine("那就猫");
                    v = new cat();
                    break;
            }


           

            petstore p = new petstore();
            p.consignAnimal(v);






            
        }    
    }
    


    
}
